package com.mylg.craw.house.baiduyun.dto;

import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * "id": "as-th7f8y0ckj",
 * "object": "chat.completion",
 * "created": 1702964273,
 * "result": "The image depicts a dining table with multiple bowls, containing various food items, including  rice and meat. The bowl s are placed on different sides of the table, and chopsticks can be seen placed near the bowls. In addition to the bowl s, there are two spoons, one closer to the  left side of the table and the other towards the center. The table is also accompanied by a cup , placed at the top left corner.",
 * "is_safe": 1,
 * "usage": {
 * "prompt_tokens": 3,
 * "completion_tokens": 98,
 * "total_tokens": 101
 * }
 */
@Getter
@Setter
@ToString
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class Image2TextResponseDto {
    private Integer errorCode;
    private String errorMsg;
    private String id;
    private String object;

    //时间戳
    private Integer created;

    private String result;

    private Integer isSafe;

    private Usage usage;

    @Getter
    @Setter
    @ToString
    @JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
    public static class Usage {
        private Integer promptTokens;
        private Integer completionTokens;
        private Integer totalTokens;
    }
}
